﻿using System;
using K9Nano.Dependency;
using Microsoft.Extensions.DependencyInjection;

namespace K9Nano.Web
{
    public static class WebStartupExtensions
    {
        public static IK9NanoAppBuilder AddWeb(this IK9NanoAppBuilder builder)
        {
            var thisAssembly = typeof(WebStartupExtensions).Assembly;
            builder.Services.RegisterConventionalAssembly(thisAssembly);
            builder.MvcApplicationPartAeAssemblies.Add(thisAssembly);

            return builder;
        }
    }
}
